You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > Rem Method > clMatrix.Rem Method ([In] TOpenCLMtxVec, [In] TOpenCLMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.Rem Method ([In] TOpenCLMtxVec, [In] TOpenCLMtxVec)

The Reminder after division X/Y.

Syntax
C#
Visual Basic
public TOpenCLMtxVec Rem([In] TOpenCLMtxVec X, [In] TOpenCLMtxVec Y);

Calculates reminder after division according to formula: 

x[i]-y[i]*Trunc(x[i]/y[i]). 

The results will be saved to the calling vector. X and Y must be a real and have the same length. Size and Complex properties of the calling vector are set implicitly to match the X object.

var a,b,c: clMatrix; begin a.CopyFromArray(2,2,TSingleArray.Create(0,1,10,-1,-10)); // a = [0, 1, 10, -1]; b.CopyFromArray(2,2,TSingleArray.Create(0,1,PI,-1,-PI)); // b = [0, 1, PI, -1]; c.Rem(a,b); // c = [0, 0, 0.5752, 0] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!